#ifndef GY_8507_FUNC_H
#define GY_8507_FUNC_H

#include "ControlCAN.h"

typedef  int int32_x;
typedef  unsigned int uint32_x;
typedef  unsigned short uint16_x;

typedef int32_x (*sfunc2)(int32_x,int32_x);
typedef int32_x (*sfunc3)(int32_x,int32_x,int32_x);
typedef int32_x (*sfunc4)(int32_x,int32_x,int32_x,PVCI_INIT_CONFIG);
typedef int32_x (*sfunc41)(int32_x,int32_x,int32_x,PVCI_CAN_OBJ);

extern sfunc3  VCI_OpenDevice;
extern sfunc2  VCI_CloseDevice;
extern sfunc4  VCI_InitCAN;
extern sfunc3  VCI_StartCAN;
extern sfunc41 VCI_Transmit;
extern sfunc41 VCI_Receive;

extern const uint16_x VCI_BaudConfig[6][3];

// 这个变量用来表示打开的设备  0表示未打开 1表示周立功CAN 2表示吉阳光电
// 注意，这个变量是设备打开时才赋值，关闭时应该清零
extern uint16_x g_DevType_ZLG1_GY2;
extern uint16_x g_Channal;
extern uint32_x g_Baud;


#endif // GY_8507_FUNC_H
